//
//  constant.h
//  SpeedTap
//
//  Created by Chi Ho Chiu on 14/8/11.
//  Copyright 2011 Individual. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

const static float HUD_LAYER_Y_RATIO = 0.15;
const static float GENERAL_LAYER_Y_RATIO = 1 - HUD_LAYER_Y_RATIO;
const static float GENERAL_LAYER_X_RATIO = 0.7;

//State of the Sprite, different time can be different stage
typedef enum
{
    kSPRITE_STATE_NIL = -1,
    kSPRITE_STATE_IDLE = 0,
	kSPRITE_STATE_MINUS = 1,
	kSPRITE_STATE_EXPLODE_ZERO = 2,
	kSPRITE_STATE_EXPLODE_CHAIN = 3,
	KSPRITE_STATE_FALL = 4,
    kSPRITE_STATE_REMOVED = 5
} ESpritesState;

typedef enum
{
    kGAME_STATE_NIL = -1,
    kGAME_STATE_LOADING = 0,
    kGAME_STATE_PLAYING = 1,
    kGAME_STATE_LEVEL_COMPLETED = 2,
    kGAME_STATE_GAME_OVER = 3,
} EGameState;

typedef enum
{
    kGAME_SCENE_NIL = -1,
    kGAME_SCENE_MAIN_MENU = 101,
    kGAME_SCENE_OPTION = 102,
    kGAME_SCENE_LEVEL_SELECT = 103,
	kGAME_SCENE_PLAY_SCENE = 104
} EGameScene;

const static int MAX_BOX_COLUMN = 7;
const static int MAX_BOX_ROW = 8;
const static int LEFT_BOTTOM_X = 22;
const static int LEFT_BOTTOM_Y = 82;
const static int BOX_WIDTH = 44;
const static int BOX_HEIGHT = 44;